package com.jdaoyun.a_preAid.entity;

import java.util.Date;

import lombok.Data;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 派车单表(AidOrderambulance)实体类
 *
 * @author makejava
 * @since 2025-08-20 16:54:12
 */
@Data
@TableName("aid_orderambulance")
public class AidOrderambulance implements Serializable {
    private static final long serialVersionUID = 977250024581532826L;


    /**
     * 编号
     */
    @TableId
    private Integer orderAmbulanceId;

    /**
     * 代码
     */
    @TableField("code")
    private String code;


    /**
     * 派车单号
     */
    @TableField("orderAmbulanceNumber")
    private String orderAmbulanceNumber;


    /**
     * 受理单id
     */
    @TableField("orderId")
    private Integer orderId;


    /**
     * 车辆id
     */
    @TableField("ambulanceId")
    private Integer ambulanceId;


    /**
     * 0-受理单；1-预约单
     */
    @TableField("orderAmbulanceType")
    private Integer orderAmbulanceType;


    /**
     * 司机id
     */
    @TableField("driverId")
    private Integer driverId;


    /**
     * 医生id
     */
    @TableField("doctorId")
    private Integer doctorId;


    /**
     * 护士id
     */
    @TableField("nurseId")
    private Integer nurseId;


    /**
     * 司机姓名
     */
    @TableField("driverName")
    private String driverName;


    /**
     * 医生姓名
     */
    @TableField("doctorName")
    private String doctorName;


    /**
     * 护士姓名
     */
    @TableField("nurseName")
    private String nurseName;


    /**
     * 操作人id
     */
    @TableField("userId")
    private Integer userId;


    /**
     * 派车单状态
     */
    @TableField("orderAmbulanceStateId")
    private Integer orderAmbulanceStateId;


    /**
     * 备注
     */
    @TableField("description")
    private String description;


    /**
     * 派车单已完成
     */
    @TableField("hasCompleted")
    private Integer hasCompleted;


    /**
     * 租户编号
     */
    @TableField("tenantId")
    private Integer tenantId;


    /**
     * 有效
     */
    @TableField("isValid")
    private Integer isValid;


    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;


    /**
     * 接收
     */
    @TableField("isReceive")
    private Integer isReceive;


    /**
     * 有效派车单
     */
    @TableField("isValidOrderAmbulance")
    private Integer isValidOrderAmbulance;


    /**
     * 接收时间
     */
    @TableField("receiveTime")
    private Date receiveTime;


    /**
     * 收费金额
     */
    @TableField("charge")
    private Double charge;


    /**
     * 终止原因
     */
    @TableField("terminationReason")
    private String terminationReason;


    /**
     * 修改时间
     */
    @TableField("updateTime")
    private Date updateTime;


    /**
     * 分站id
     */
    @TableField("stationId")
    private Integer stationId;


    /**
     * 完成时间
     */
    @TableField("completedTime")
    private Date completedTime;


    /**
     * 无病历（原因）
     */
    @TableField("reason")
    private String reason;


    /**
     * 驶向现场
     */
    @TableField("sendTime")
    private Date sendTime;


    /**
     * 到达现场
     */
    @TableField("arrivedTime")
    private Date arrivedTime;


    /**
     * 病人上车
     */
    @TableField("patientOnBoardTime")
    private Date patientOnBoardTime;


    /**
     * 到达医院
     */
    @TableField("sendToHospitalTime")
    private Date sendToHospitalTime;


    /**
     * 是否处理过
     */
    @TableField("isHandle")
    private Integer isHandle;


    /**
     * 担架工id
     */
    @TableField("stretcherBearerId")
    private Integer stretcherBearerId;


    /**
     * 担架工姓名
     */
    @TableField("stretcherBearerName")
    private String stretcherBearerName;


    /**
     * 预计费用
     */
    @TableField("estimateCharge")
    private Long estimateCharge;


    /**
     * 距离
     */
    @TableField("distance")
    private Double distance;


    /**
     * 是否改派
     */
    @TableField("isReassignment")
    private Integer isReassignment;


    /**
     * 预估距离
     */
    @TableField("computeDistance")
    private Double computeDistance;


    /**
     * 预估分数
     */
    @TableField("mark")
    private Double mark;


    /**
     * 补贴
     */
    @TableField("allowance")
    private Double allowance;


    /**
     * 收费备注
     */
    @TableField("remarks")
    private String remarks;


    /**
     * 车辆初始经度
     */
    @TableField("startLng")
    private String startLng;


    /**
     * 车辆初始纬度
     */
    @TableField("startLat")
    private String startLat;


    /**
     * 派车单扩展状态 1 空车返回
     */
    @TableField("expandStatus")
    private Integer expandStatus;


    /**
     * 扩展状态变化时间
     */
    @TableField("expandTime")
    private Date expandTime;


    /**
     * 扩展状态备注
     */
    @TableField("expandRemark")
    private String expandRemark;


    /**
     * 扩展状态操作人
     */
    @TableField("expandOperator")
    private Integer expandOperator;


    /**
     * 进区域时间
     */
    @TableField("entryAreaTime")
    private Date entryAreaTime;


    /**
     * 出区域时间
     */
    @TableField("exitAreaTime")
    private Date exitAreaTime;


    /**
     * 预计到达时间
     */
    @TableField("expectArriveTime")
    private String expectArriveTime;


    /**
     * 特殊标记 1转运中(司机端修改地址)
     */
    @TableField("specialMark")
    private Integer specialMark;


}

